/***Variables***/
$error-color: #FFE3E3;
$valid-color: #CBFCCB;

/***General***/
html, body {
  padding: 0;
  margin: 0;
  overflow: hidden;
}

#loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  font-weight: 900;
  padding-top: 5em;
  background-color: #FFF;
  z-index: 1000;

  div {
    padding-top: 5em;
  }
}

p.ui-content.error-message {
  min-width: 10em;
  text-align: center;
}

.schema-version {
    padding-left: 3px;
    font-size: .7em;
    font-weight: 500;
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
}

        /******Viewer*******/
#main-body {
  position: relative;
}

#schema-path {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#zoom-controls {
  position: absolute;
  top: 15px;
  left: 10px;
}

#legend-container {
  width: 200px;
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: .9em;

  #search-result {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 15em;
  }
}

#jsv-tree {
  display: block;
}

.node {
  cursor: pointer;
}

.overlay {
  background-color: inherit;
}

.node circle, #legend circle {
  fill: #fff;
  stroke: steelblue;
  stroke-width: 1.5px;
}

.node circle.collapsed, #legend circle.collapsed {
  fill: lightsteelblue;
}

.node .abstract, #legend .abstract {
  font-style: italic;
}

.node.label {
  cursor: default;
}

.node.label circle, .node.label circle:hover {
  stroke: #ccc;
  stroke-width: 1.5px;
}

.node text {
  font-size: 14px;
  font-family: sans-serif;
}

.node text:hover {
  text-decoration: underline;
}

.node.label text:hover {
  text-decoration: none;
}

.node.focus, #legend .focus {
  font-weight: bold;
}

.node.focus circle, #legend .focus circle {
  stroke: #0ECC43;
  stroke-width: 2px;
}

.node circle:hover, .focus circle:hover {
  stroke-width: 3px;
}

.deprecated {
  color: orange;

  text {
    fill: orange;
  }
}

.link {
  fill: none;
  stroke: #ccc;
  stroke-width: 1.5px;
}

#info-panel .ui-title {
  margin: 0 20%;
}

#info-panel .info-tab {
  overflow: hidden;
}

div#info-tab-def.info-tab, #info-panel .info-tab pre {
  overflow: auto;
}
#info-panel .info-tab .highlight {
  color: green;
  font-weight: 900;
}

        /*****Validator*****/
#textarea-json {
  height: auto !important;
  overflow-y: auto;
}

#validator-page {
  height: 100%;
}

#validator-page .section {
  padding: 1em;
}

#validator-page .drag {
  background-color: #CBFF8B;
}

#validation-results {
  background-color: $valid-color;
}

#validation-results.error {
  background-color: $error-color;
}
      /*****Buttons******/
.ui-icon-github:after {
  background-image: url();
  background-size: 20px 20px;
  background-color: rgb(245, 245, 245);
}

        /*****JQM Overrides*****/
.ui-icon-loading {
  background: none !important;
}

@import 'highlight';
@import 'welcome';
@import 'logo';
@import 'panel';